package com.zzyl.nursing.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zzyl.common.annotation.Excel;
import com.zzyl.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * 预约时间段对象 schedule_slot
 * 
 * @author ruoyi
 * @date 2025-05-23
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("预约时间段实体")
public class ScheduleSlot extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**
    * 主键id
    */
    @ApiModelProperty(value = "主键ID")
    private Long id;

    /**
    * 日期
    */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "日期", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "日期")
    private LocalDateTime date;

    /**
    * 时间段
    */
    @Excel(name = "时间段")
    @ApiModelProperty(value = "时间段")
    private String timeSlot;

    /**
    * 总次数
    */
    @Excel(name = "总次数")
    @ApiModelProperty(value = "总次数")
    private Integer total;

    /**
    * 剩余次数
    */
    @Excel(name = "剩余次数")
    @ApiModelProperty(value = "剩余次数")
    private Integer remaining;

}
